package org.john.controller;

import org.john.domain.Person;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class PersonController {
	@RequestMapping(value="/person")
	public ModelAndView findAll(){
		Person person =  new Person();
		person.setName("qiao");
		person.setAge(1);
		ModelAndView modelAndView = new ModelAndView("index", "person", person);
		return modelAndView;
	}
}
